package com.ys.otms.utils.wxtemplate;

import com.jfinal.weixin.sdk.api.AccessTokenApi;
import com.jfinal.weixin.sdk.api.ApiConfig;
import com.jfinal.weixin.sdk.api.ApiConfigKit;

public class GetWxAccessTokenUtil {

    private static final String APP_ID = "wx58519e3ec84a9952";
    private static final String APP_SECRET = "e93747b9259a61c7c3b12ae9ca235da6";

    public static String getWxAccessToken() {
        ApiConfig apiConfig = new ApiConfig();
        apiConfig.setAppId(APP_ID);
        apiConfig.setAppSecret(APP_SECRET);
        ApiConfigKit.setThreadLocalApiConfig(apiConfig);
        return AccessTokenApi.getAccessTokenStr();
    }
}
